# -*- coding: utf-8 -*-
# @Time    : 2019/11/18 15:23
# @Author  : ZSQ
# @Email   : zsq199170918@163.com
# @FileName: redis_pool.py
# @Software: PyCharm
# HOST = '127.0.0.1'
HOST = '192.168.5.223'
PORT = 6379
DB = 4
MAX_CONN = 50
PROXY_REDIS_KEY = 'proxy'
PROXY_NUM = 10

from redis import ConnectionPool

# 用于代理
POOL = ConnectionPool(host=HOST, port=PORT, db=DB, max_connections=MAX_CONN, decode_responses=True)
# 用于去重
FILTER_POOL = ConnectionPool(host='127.0.0.1', port=6379, db=4, max_connections=10, decode_responses=True)
